package model

import "gorm.io/gorm"

type Message struct {
	gorm.Model
	UserId  int    `gorm:"type:int;comment:管理员id"`
	DistId  int    `gorm:"type:int;comment:接收者id"`
	Title   string `gorm:"type:varchar(255);comment:消息标题"`
	Content string `gorm:"type:text;comment:发送内容"`
	Status  int    `gorm:"type:int;comment:0未读1已读;default:0"`
	Deleted int    `gorm:"type:int;comment:0未删除1已删除;default:0"`
}
type Dan struct {
	gorm.Model
	Content string `gorm:"type:text;comment:弹幕内容"`
}
